﻿@model List<e.Store.Model.Entities.LoadAllUsersResult>

<div id="productData" class="panel panel-danger">
    <div class="panel-heading">
        <h3 class="panel-title">Users List &nbsp;<span class="badge">@Model.Count()</span> <span class="pull-right">
            <a href="/Administrator/AddUser" title="Add New User" class="btn-sm btn-primary">
                <span class="btn-label"><i class="icon-plus"></i></span>Add New User </a>
        </span></h3>
    </div>
    <div class="panel-body">
        <div class="table-responsive">
            <table id="myDataTable" class="table table-bordered table-responsive">
                <thead>
                    <tr>
                        <th>Username</th>
                        <th>First Name
                        </th>
                        <th>Last Name
                        </th>
                        <th>Role
                        </th>
                        <th>Mobile #
                        </th>
                        <th>Phone #
                        </th>
                        <th>Email ID
                        </th>
                        <th>Address
                        </th>
                        <th>Active
                        </th>
                        <th style="text-align: center">Action
                        </th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var item in Model)
                    {
                        <tr id="Row_@item.UserOID">
                            <td>@item.Username</td>
                            <td>@item.FirstName
                            </td>
                            <td>@item.LastName
                            </td>
                            <td>@item.RoleName
                            </td>
                            <td>@item.MobileNum
                            </td>
                            <td>@item.PhoneNum
                            </td>
                            <td>@item.EmailID
                            </td>
                            <td>@item.Address
                            </td>
                            <td>@item.Active</td>
                            <td style="text-align: center"><span><a href="/Administrator/EditUser/@item.UserOID " title="Edit User" class="btn-sm btn-info"><i class="icon-pencil"></i></a></span></td>
                        </tr>
                    }

                </tbody>

            </table>
        </div>
    </div>
</div>
